import flash.display.Sprite;
import flash.display.Shape;

class Simple extends Sprite
{
   
   public function new()
   {
      super();
      flash.Lib.current.addChild(this);


      // creating a new shape instance
      var circle:Shape = new Shape( ); 
      // starting color filling
      circle.graphics.beginFill( 0xff9933 , 1 );
      // drawing circle 
      circle.graphics.drawCircle( 0 , 0 , 40 );
      // repositioning shape
      circle.x = 80;
      circle.y = 80;

      // adding displayobject to the display list
      addChild( circle ); 
   }

   static public function main()
   {
      neash.Lib.Init("Simple",640,480); 
      neash.Lib.SetBackgroundColour(0x334433); 

      new Simple();

      neash.Lib.Run(); 
   }
}

